\b0 During the boot session of a netbooted client, the following error messages occur:\
\
\f2 NFS write error 13 on host:
\i servername
\f3\i0 \
\
The boot then stalls after
\b lookupd
\b0 . Why?\
\
\b A:
\b0 The file systems for the netbooted client are not exported correctly from the server. Error 13 means permission denied, as defined in
\i /usr/include/sys/errno.h
\i0 , which means in this context that the client can't write to its private filesystem.\
\
A netbooted client needs two filesystems to boot. Here's what needs to be in /etc/exports:\
\
\f2 / -access=
\i clientname
\i0 \
/clients/
\i clientname
\i0 -access=
\i clientname
\i0 ,root=
\i clientname
\i0 \
\
\f3 Every additional client will have a line for its private partition named /clients/
\i clientname
\i0 , where
\i clientname
\i0 is the hostname of the netbooted client. Every client also needs to be in the access list for the exports of the / filesytem, e.g:\
\f0\i\fs28
\f3\fs24 \
\f2\i0 / -access=
\i clientname
\i0 :
\i client2name
\i0 \
\
\f3 The write error 13 is most commonly seen when there is a blank between the "," and the word "root" in the entry for private partition. This blank will cause an incorrect export.
\b exportfs
\b0 on the server will report the following
\i
\i0 (
\i servername
\i0 is the hostname of the machine that exports the client filesystems to the netbooted clients):\
\
\f2\i servername
\i0 #
\b exportfs
\b0 \
/ -access
\i =clientname
\i0 \
/clients/
\i clientname
\i0 -access=
\i clientname
\i0 ,,access=root=
\i clientname
\i0 \
\
\f3 Note that
\b exportfs
\b0 shows an invalid export for /clients/
\i clientname
\i0 , as shown by the two commas and the invalid root and access option values.\
\
To fix the problem, remove the blank between the comma and the word "root" in the appropriate line in /etc/exports. The filesystem must then be re-exported in order for the changes in /etc/exports to take place. To do this, either reboot the server or type the following command from a Terminal or Shell as root:\
\
\f2 servername#
\b exportfs -av
\b0 \
\
\f3\b exportfs
\b0 will then report a correctly exported filesystem:\